package org.egedede.processmanager.impl;

import org.egedede.processmanager.ProcessDefinition;
import org.egedede.processmanager.ProcessPack;

public class ParallelPackProcessor implements Runnable {

	private final ProcessPack pack;

	public ParallelPackProcessor(ProcessPack pack) {
		this.pack = pack;
	}

	@Override
	public void run() {
		for (ProcessDefinition def : this.pack.getPack()) {
			def.start();
		}
	}

}
